package jin.si.com.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * @description: request生命周期
 * @ClassName TestHttpServletRequestListener
 * @Author MT
 * @Date 2021/5/11 11:58
 **/

@WebListener
public class TestHttpServletRequestListener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("request销毁======================");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("request创建======================");
    }
}
